#include "Stack.h"


void test(void)
{
	Stack s;
	stackInit(&s);

	stackPush(&s, 1);
	stackPush(&s, 2);
	stackPush(&s, 3);
	stackPush(&s, 4);
	stackPush(&s, 5);

	stackPop(&s);
	printf("%d %d %d\n", stackIsEmpty(&s), stackTop(&s), stackSize(&s));

	stackPop(&s);
	printf("%d %d %d\n", stackIsEmpty(&s), stackTop(&s), stackSize(&s));

	stackPop(&s);
	printf("%d %d %d\n", stackIsEmpty(&s), stackTop(&s), stackSize(&s));

	stackPop(&s);
	printf("%d %d %d\n", stackIsEmpty(&s), stackTop(&s), stackSize(&s));

	stackPop(&s);
	printf("%d   %d\n", stackIsEmpty(&s), stackSize(&s));

	//stackTop(&s);

	stackDesTroy(&s);
}

int main(void)
{
	test();

	return 0;
}